using System;
using System.Collections.Generic;
using System.Text;

namespace Emlyn.Website.ArticlesPresentation
{
    public class PresentArticleDetailFactory: PresentArticleFactoryBase
    {
        public PresentArticleDetailFactory()
            : base()
        {
            _includeDateInDisplayName = false;
            _useMusicPlayer = false;
        }

        protected override PresentArticle  DoConstructPresentArticle()
        {
            PresentArticleDetail retval = new PresentArticleDetail();

            retval.Editable = aEditable;
            retval.CssClass = aCSSPrefix;
            retval.NavigateUrl = aNavigateUrl;
            retval.IncludeDateInDisplayName = IncludeDateInDisplayName;
            retval.UseMusicPlayer = UseMusicPlayer;

            return retval;
        }

        private bool _includeDateInDisplayName;

        public bool IncludeDateInDisplayName
        {
            get { return _includeDateInDisplayName; }
            set { _includeDateInDisplayName = value; }
        }

        private bool _useMusicPlayer;

        public bool UseMusicPlayer
        {
            get { return _useMusicPlayer; }
            set { _useMusicPlayer = value; }
        }
    }
}
